﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Data.SQLite;

namespace PwdMgr.DataAccess.SQLite
{
    class SQLiteDBCreator
    {
        public static void CreateIfNotExist(string fileName)
        {
            if (!File.Exists(fileName))
            {
                var scripts = new[]
                {
                    "CREATE DATABASE [PwdMgr];",
                    "CREATE TABLE [UserInfo] (UserID INTEGER PRIMARY KEY, "
                };
                SQLiteConnection.CreateFile(fileName);
            }
        }
    }
}
